const initState = {
  status: '',
  message: '',
  email: ''
}

export default (state = initState, action) => {
  switch (action.type) {
    case 'RESET_EMAIL':
      return {status: action.status, message: action.message || state.message, email: action.email || state.email}
    default:
      return state
  }
}